package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * ApiRequestContractData
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class ApiRequestContractData   {
  @JsonProperty("search")
  private String search = null;

  @JsonProperty("pageSize")
  private Integer pageSize = null;

  @JsonProperty("pageIndex")
  private Integer pageIndex = null;

  public ApiRequestContractData search(String search) {
    this.search = search;
    return this;
  }

  /**
   * 搜索内容 支持按照客户号、客户姓名、手机号码、合约编号模糊搜索
   * @return search
  **/
  @ApiModelProperty(value = "搜索内容 支持按照客户号、客户姓名、手机号码、合约编号模糊搜索")


  public String getSearch() {
    return search;
  }

  public void setSearch(String search) {
    this.search = search;
  }

  public ApiRequestContractData pageSize(Integer pageSize) {
    this.pageSize = pageSize;
    return this;
  }

  /**
   * 每页显示条数
   * @return pageSize
  **/
  @ApiModelProperty(value = "每页显示条数")


  public Integer getPageSize() {
    return pageSize;
  }

  public void setPageSize(Integer pageSize) {
    this.pageSize = pageSize;
  }

  public ApiRequestContractData pageIndex(Integer pageIndex) {
    this.pageIndex = pageIndex;
    return this;
  }

  /**
   * 当前页数（第一页从1开始）
   * @return pageIndex
  **/
  @ApiModelProperty(value = "当前页数（第一页从1开始）")


  public Integer getPageIndex() {
    return pageIndex;
  }

  public void setPageIndex(Integer pageIndex) {
    this.pageIndex = pageIndex;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiRequestContractData apiRequestContractData = (ApiRequestContractData) o;
    return Objects.equals(this.search, apiRequestContractData.search) &&
        Objects.equals(this.pageSize, apiRequestContractData.pageSize) &&
        Objects.equals(this.pageIndex, apiRequestContractData.pageIndex);
  }

  @Override
  public int hashCode() {
    return Objects.hash(search, pageSize, pageIndex);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiRequestContractData {\n");
    
    sb.append("    search: ").append(toIndentedString(search)).append("\n");
    sb.append("    pageSize: ").append(toIndentedString(pageSize)).append("\n");
    sb.append("    pageIndex: ").append(toIndentedString(pageIndex)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

